package com.example.service.impl;

import com.example.mapper.ChatLogMapper;
import com.example.pojo.ChatLog;
import com.example.service.ChatLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description TODO
 * @Author fantasy
 * @Date 2025/1/20 22:32
 **/

@Service
public class ChatLogServiceImpl implements ChatLogService {

    @Autowired
    private ChatLogMapper chatLogMapper;
    @Override
    public void addChatLog(ChatLog chatLog) {
        chatLogMapper.addChatLog(chatLog);
    }

    @Override
    public List<ChatLog> getChatLog(Map map) {
        return chatLogMapper.getChatLog(map);
    }

    @Override
    public List<ChatLog> getChatList() {
        return chatLogMapper.getChatList();
    }
}
